<template>
  <div class="">
    <div class="block">
      <el-pagination
        background
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page.sync="currentPage"
        :page-size="pageSize"
        layout="prev, pager, next, jumper"
        :total="total"
      >
      </el-pagination>
    </div>
  </div>
</template>

<script>

export default {
  props:['pageSize','total'],
  name: "page",
  data() {
    return {
        currentPage: 1,
    };
  },
  created() {},
  methods: {
    handleSizeChange(val) {
      // console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(e) {
      this.$emit('handleCurrentChange',e)
    },
  },
  components: {},
};
</script>

<style lang="scss"></style>
